package com.yoshino.bridge;

/**
 * @author yoshino
 **/
public class Client {
    public static void main(String[] args) {
        // 获取折叠式手机（样式 + 品牌）
        Phone phone1 = new FolderPhone(new XiaoMi());

        phone1.open();
        phone1.call();
        phone1.close();

        System.out.println("==========");

        phone1 = new FolderPhone(new Vivo());
        phone1.open();
        phone1.call();
        phone1.close();

        System.out.println("==========");
        phone1 = new UpRightPhone(new XiaoMi());
        phone1.open();
        phone1.call();
        phone1.close();
    }
}
